#ifndef PLACE_H
#define PLACE_H

#include <QGraphicsItem>
#include <QPainter>

class Chip;

class ChipPlace : public QGraphicsItem
{
public:
    ChipPlace(int getRow, int getCol, int size, const QColor &color);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    QRectF boundingRect() const;

    int getRow();
    int getCol();

    Chip* getChipItem();

    enum { Type = UserType + 1 };

    int type() const
    {
        return Type;
    }

private:
    int size;
    QColor color;
    int row, col;
};

#endif // PLACE_H
